package yxxy.c_005;


class T implements Runnable {

    private int count = 10;

    @Override
    public /*synchronized*/ void run() { //synchronized 原子操作，不可分
        count--;
        System.out.println(Thread.currentThread().getName() + " count = " + count);
    }

    // 请问这段代码有什么问题？
    public static void main(String[] args) {
        T t = new T();
        for (int i = 0; i < 5; i++) {
            new Thread(t, "Thread" + i).start();
        }
    }
}
